home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 12 / Cream of the Crop 12 (Part II) / Cream of the Crop 12 (Part II).iso / OS2 / VD08BIN.ZIP / usr / include / db / DBIndex.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-13  |  1.5 KB  |  66 lines

  1. /* -------------------------------------------------------------------
  2.  
  3.     Project: 
  4.  
  5.     Objective-C interface file for the class DBIndex
  6.  
  7.     COPYRIGHT (C), 1996, Thomas Baier
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Date:                Rev:
  11.     1996-Jan-01            ___
  12.  
  13.  */
  14.  
  15. #ifndef _DBINDEX_H_
  16. #define _DBINDEX_H_
  17.  
  18. /*====================================================================
  19.                       Interface of class DBIndex                      
  20. ====================================================================*/
  21. #include <sys/types.h>
  22. #include <limits.h>
  23. #include <db.h>
  24.  
  25. #include <objc/Object.h>
  26. #include <db/DBFile.h>
  27. #include <db/DBField.h>
  28.  
  29. @interface DBIndex : Object
  30. {
  31.   const char *fileName;
  32.   DBFile     *entity;
  33.   DBField    *property;
  34.  
  35.   DB  *indexFile;
  36.   DBT  dbt_key;
  37.   DBT  dbt_data;
  38.  
  39.   id    searchArguments;
  40.   char *lowerBound;
  41.   char *upperBound;
  42. }
  43.  
  44. /* -------------------------- Initialize -------------------------- */
  45. -initName: (const char *) aName entity: (DBFile *) anEntity property: (DBField *) aProperty;
  46.  
  47. /* ----------------------------- Free ----------------------------- */
  48. -free;
  49.  
  50. /* ----------- Methods for access to Instance Variables ----------- */
  51. -setSearchArguments: args;
  52. -searchArguments;
  53.  
  54. /* ------------------------ Public methods ------------------------ */
  55. -(BOOL) findFirst;
  56. -(BOOL) findNext;
  57. -(long) currentRecord;
  58.  
  59. /* ----------------------- Private methods ------------------------ */
  60.  
  61. /* ---------------------- Archiving methods ----------------------- */
  62.  
  63. @end
  64. #endif
  65.  
  66.